<!DOCTYPE html>
<html id="htmlId" >

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="renderer" content="webkit">
  <!-- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> -->
  <meta name="viewport"
    content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <link rel="icon" type="image/svg+xml" href="/vite.svg">
  <!-- <link rel="icon" href="/dhlogo.ico"> -->
  <title>代码生成</title>
  <!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
  <style>
    .loading-box {
      position: fixed;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      z-index: 999;
    }

    .loading {
      width: 200px;
      height: 200px;
      box-sizing: border-box;
      /* background-color: #911f7e; */
      border-radius: 50%;
      border-top: 10px solid #1338f4;
      position: relative;
      animation: a1 2s linear infinite;
    }

    .loading::before,
    .loading::after {
      /*伪元素一定要与content一起使用。::brfore表示在loading前面加东西，::after表示在元素后面加内容。content就是内容*/
      content: '';
      width: 200px;
      height: 200px;
      /* background: red; */
      position: absolute;
      left: 0;
      top: -10px;
      box-sizing: border-box;
      border-radius: 50%;
    }

    .loading::before {
      border-top: 10px solid #e67e22;
      transform: rotate(120deg);
    }

    .loading::after {
      border-top: 10px solid #009432;
      transform: rotate(240deg);
    }

    .loading span {
      position: absolute;
      width: 200px;
      height: 200px;
      text-align: center;
      line-height: 200px;
      animation: a2 3s linear infinite;
    }

    @keyframes a1 {
      to {
        transform: rotate(360deg);
      }
    }

    @keyframes a2 {
      to {
        transform: rotate(-360deg);
      }
    }
  </style>
</head>

<body>
  <div id="app">
    <div class="loading-box">
      <div class="loading">
        <span></span>
      </div>
    </div>
  </div>
  <script type="module" src="/src/main.js"></script>
</body>

</html>